<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        var name = prompt('请输入您的姓名:');
        var age = prompt('请输入您的年龄');
        var sex = prompt('请输入您的性别');
        var info = '您的姓名是:'+name+ '\n' +'您的年龄是:'+parseInt(age)+
                '\n' + '您的性别是:'+sex;
        alert(info);
        console.log(info)

    </script>
</head>
<body>

</body>
</html>